import QtQuick 2.4
import QtQuick.Controls 2.4
import QtQuick.Layouts 1.3

Item{
    implicitHeight: 30

    RowLayout{
        anchors.fill: parent
        Label {
            text: rootWindow.title
            bottomPadding: 0
            font.pointSize: 13
            color: rootWindow.active ? colorShema.textColor : colorShema.disabledTextColor
        }

        Button{
            id: backButton
            visible: rootWindow.stackView.depth > 1
            onClicked: rootWindow.goBack()
        }
    }
}
